import Swal from 'sweetalert2'

export const showToast = (icon, title, text) => {
    Swal.fire({
        icon: icon ?? '',
        title: title ?? '',
        text: text ?? '',
        showConfirmButton: false,
        position: "top",
        background: 'var(--bs-body-bg)',
        toast: true,
        color: 'var(--bs-emphasis-color)',
        timer: 2500,
    })
}